//
// This file is part of cpp-lib, a library of C++ functions and classes.
// Cpp-lib is copyright (C) 2004 and onwards, The CPL Interest Group.
// 
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation; either version 2.1 of the License, or (at
// your option) any later version.
// 
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
// General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this library (see the file COPYING); if not, write to the
// Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
// 02111-1307  USA
//
// $Id$
//

#ifndef CPP_LIB_TEST_KEY_H
#define CPP_LIB_TEST_KEY_H

#include <vector>
#include <cassert>

#include "cpp-lib/util.h"

inline std::vector< char > const key() {

  char const k[] = { 
	0x70 , 0x63 , 0xa7 , 0x56 , 0x05 , 0xd1 , 0xa8 , 0x26 , 
	0x5b , 0xc3 , 0xe8 , 0x8b , 0x15 , 0x6a , 0xf6 , 0x86 ,
	0x3a , 0xbe , 0x76 , 0xb6 , 0xd5 , 0xf6 , 0xcd , 0xb0 , 
	0x6c , 0x12 , 0x11 , 0x73 , 0x55 , 0x96 , 0xff , 0xb9
  } ;

  return std::vector< char >( k , k + cpl::util::size( k ) ) ;

}


inline std::vector< char > const IV() {

  char const i[] = { 
	0xb7 , 0xb3 , 0xeb , 0x5e , 0x75 , 0xb6 , 0x9a , 0x46 
  } ;

  assert( 8 == cpl::util::size( i ) ) ;
  
  return std::vector< char >( i , i + cpl::util::size( i ) ) ;

}

#endif // CPP_LIB_TEST_KEY_H
